﻿@{
    var model = ViewData["Category"] != null ? (List<VietPublisher.BSL.BK.T_BK_Category>)ViewData["Category"] : new List<VietPublisher.BSL.BK.T_BK_Category>();
    var CategoryUpd = "";
    foreach (var i in model)
    {
        CategoryUpd = "," + i.CategoryID;
    }
}
<table class="upImg">
    <tr>
        <th>
            Category
        </th>

        <td align="right">
        <input type="hidden" id="CategoryID" name="CategoryID" value="@CategoryUpd" />
            <input type="button" value="Modify" onclick="PopupCategory();" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <select name="cbxCategory" id="cbxCategory" size="4" multiple="multiple" style="width: 200px;
                height: 100px">
                @foreach (var item in model)
                {
                    <option value="@item.CategoryID">@item.CategoryName</option>
                }
            </select>
        </td>
        
    </tr>
</table>
